package com.atheima.apis.article;

import com.atheima.apis.article.fallback.IArticleClientFallback;
import com.heima.model.article.dtos.articleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@Service
@FeignClient(value = "leadnews-article",fallback = IArticleClientFallback.class)
public interface saveArticle {

    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody articleDto articledto);

}
